//
//  TestProblem1346.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/25.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem1346: XCTestCase {

    var problem = Problem1346()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem1346_Case1() throws {
        XCTAssertEqual(problem.checkIfExist([10,2,5,3]), true)
    }
    
    func testProblem1346_Case2() throws {
        XCTAssertEqual(problem.checkIfExist([7,1,14,11]), true)
    }
    
    func testProblem1346_Case3() throws {
        XCTAssertEqual(problem.checkIfExist([3,1,7,11]), false)
    }
    
    func testProblem1346_Case4() throws {
        XCTAssertEqual(problem.checkIfExist([-2,0,10,-19,4,6,-8]), false)
    }
}
